package com.jflm.mapper;

import java.util.List;

import com.jflm.config.mybatis.MyMapper;
import com.jflm.domain.Permission;
import com.jflm.domain.RuleSet;
import com.jflm.domain.Shop;
import com.jflm.domain.ShopMoney;
import com.jflm.domain.ShopService;
import com.jflm.domain.User;

public interface ShopMapper extends MyMapper<Shop> {
	/**
	 * 查询商户列表
	 * @param shop
	 * @return
	 */
	List<Shop> findList(Shop shop) throws Exception;
	/**
	 * 添加数据到商户表
	 * @param shop
	 * @return
	 */
	int add(Shop shop);
	/**
	 * 添加数据到规则集表
	 * @param shopService
	 * @return
	 */
	int add2(ShopService shopService) throws Exception;
	/**
	 * 添加数据到商户充值表
	 * @param shopMoney
	 * @return
	 */
	int add3(ShopMoney shopMoney) throws Exception;
	/**、
	 * 添加数据到用户表
	 * @param user
	 * @return
	 */
	int add4(User user) throws Exception;
	/**
	 * 添加数据到用户权限表
	 * @param permission
	 * @return
	 */
	int add5(Permission permission) throws Exception;
	
	/**
	 * 查询规则集
	 * @return
	 */
	List<RuleSet> find() throws Exception;
}
